package io.renren.modules.employment.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.renren.modules.employment.service.CompanyService;
import io.swagger.annotations.Api;

@RestController
@RequestMapping("/api")
@Api(tags="公司接口")
public class CompanyController {

	@Autowired
	CompanyService companyService;
	
	/*@PostMapping("addCompany")
	@ApiOperation("对公司的增加方法")
	public R addCompany(@RequestBody Company company) {
		
		int count = companyService.addCompany(company);  //返回值为影响的行数
		
		if(count == 0) {
			return R.error(101, "添加公司失败");
		}
		return R.ok("添加公司成功", 100);
	}*/
	
	
	/*@RequestMapping("selectPostionByLike")
	//@ApiOperation("对公司的模糊查询")
		public void selectPostionByLike(HttpServletResponse response) throws Exception{
		System.out.println("tttt");
		response.sendRedirect("https://www.baidu.com");

		
		

	}*/
	
}
